package com.bbcloud.service;

import com.bbcloud.common.ServerResponse;
import com.bbcloud.pojo.Day;
import com.github.pagehelper.PageInfo;
import org.springframework.web.multipart.MultipartFile;

/**
 * Created by liuzhu on 2018/11/23.
 */
public interface IDayService {

    ServerResponse<PageInfo>getActivityByDayId(String token,String userId, String dayId,int pageNum,int pageSize,String orderBy);

    ServerResponse saveActivity(String token,String userId,String dayId,String activityLines,String deviceId,int distance,int usedTime,int speedAvg);

    ServerResponse<Day> clock(String token,String userId,String dayId,String description,String path,MultipartFile file);

    ServerResponse<Day> selectDayWithDayIdAndUserId(String token,String userId,String dayId);


}
